package com.zhw.learning.designpattern.proxypattern.staticproxy;

import lombok.extern.slf4j.Slf4j;

/**
 * @author Administrator
 * 代理类
 */
@Slf4j
public class Proxy1 implements JiaoYi1{

    private FangNu1 fangNu1;

    public Proxy1(FangNu1 fangNu1){
        this.fangNu1 = fangNu1;
    }

    @Override
    public void maifang(String houseName, double money) {
        log.info("静态代理前置内容 ... ");
        fangNu1.maifang(houseName,money);
        log.info("静态代理后置内容 ... ");
    }
}
